var app=getApp()
Page({

    data: {
      name:'',
      img:''
    },

    // 返回社区（从哪里来回哪里去）
    goback:function(){
        wx.navigateBack({
          delta: 1,
        })
    },
    onShow:function(){
        let that=this
        wx.request({
          url: app.globalData.url+'/h?'+wx.getStorageSync('which'),
          method:'GET',
          data:{},
          header: {
            'content-type': 'application/x-www-form-urlencoded'
          },
          success(res) {
            that.setData({
                list:res.data.data,
                name:app.globalData.user_head_name,
                img:app.globalData.user_head_imgPath
            })
          }
        })
    },

    add_comment:function(){
        wx.redirectTo({
          url: '/pages/add_comment/add_comment',
        })
    }


})